package com.seal.commons.exception.errors;

import com.seal.commons.exception.ErrorCode;

/**
 * 功能描述: <br/>
 *
 * @author huangyong
 * @date: 2020-04-25 21:07<br/>
 * @since JDK 1.8
 */
public enum  MessageErrorCode implements ErrorCode {

    /**
     * 消息发送失败错误码
     */
    SEND_FAILED(500300,"发送消息失败"),

    /**
     * 消息发送状态未知
     */
    SEND_STATUS_UNKNOWN(500301,"发送消息状态未知"),
    ;
    private final int code;

    private final String message;

    MessageErrorCode(int code, String message){
        this.code = code;
        this.message = message;
    }

    @Override
    public int getCode() {
        return code;
    }

    @Override
    public String getMessage() {
        return message;
    }


}